using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FastPoster.DataProviders.BUS
{
	#region using
	using System.Data;
	using FastPoster.DataProviders.DAO;
	using FastPoster.DataProviders.DTO;
	#endregion
	public class DanhMucBUS
	{
		private DanhMucDAO objDAO;
		public DanhMucBUS(String strPath)
		{
			objDAO = new DanhMucDAO(strPath);
		}

		public DataSet SelectAll()
		{
            return objDAO.SelectAll();
		}

		public DataSet SelectByID(int id)
		{
            return objDAO.SelectByID(id);
		}

		public bool Insert(DanhMucDTO obj)
		{
            return objDAO.Insert(obj);
		}

		public bool Delete(int id)
		{
            return objDAO.Delete(id);
		}

		public bool Update(DanhMucDTO obj)
		{
            return objDAO.Update(obj);
		}

	}
}